<template>
	<view class="container">
		<view class="header">消 息</view>
		<view class="message-list">
			<view class="message-item" v-for="(item, index) in messageList" :key="index">
				<view class="message-content">
					<text class="message-title">支付成功通知</text>
					<text class="message-time">{{ item.time }}</text>
				</view>
				<text class="message-amount">{{ item.amount }}</text>
			</view>
		</view>
	</view>
</template>

<script setup>
	import {
		ref
	} from 'vue';

	const messageList = ref([{
			time: '2023.3.11 11:09',
			amount: '您已成功支付56.9元'
		},
		{
			time: '2023.3.11 11:09',
			amount: '您已成功支付56.9元'
		},
		{
			time: '2023.3.11 11:09',
			amount: '您已成功支付56.9元'
		}
	]);
</script>

<style scoped>
	.container {
		height: 200px;
		background-color: #007AFF;
	}

	.header {
		text-align: center;
		color: white;
		padding-top: 10px;
		font-size: 20px;
		/* font-weight: bold; */
	}

	.message-list {
		background-color: white;
		margin: 30px 10px 0 10px;
	}

	.message-item {
		padding: 16px;
		border-bottom: 1px solid #e5e5e5;
	}

	.message-content {
		display: flex;
		justify-content: space-between;
		align-items: center;
	}

	.message-title {
		font-size: 14px;
	}

	.message-time {
		font-size: 12px;
		color: #999;
	}

	.message-amount {
		font-size: 14px;
		color: #333;
	}
</style>